import request from '@/utils/request'

// 查询文章收藏列表列表
export function listRetirementEnroll(query) {
  return request({
    url: '/retirement/retirementEnroll/list',
    method: 'get',
    params: query
  })
}

// 查询文章收藏列表详细
export function getRetirementEnroll(id) {
  return request({
    url: '/retirement/retirementEnroll/' + id,
    method: 'get'
  })
}

// 新增文章收藏列表
export function addRetirementEnroll(data) {
  return request({
    url: '/retirement/retirementEnroll',
    method: 'post',
    data: data
  })
}

// 修改文章收藏列表
export function updateRetirementEnroll(data) {
  return request({
    url: '/retirement/retirementEnroll',
    method: 'put',
    data: data
  })
}

// 删除文章收藏列表
export function delRetirementEnroll(id) {
  return request({
    url: '/retirement/retirementEnroll/' + id,
    method: 'delete'
  })
}
